
layui.use(['form', 'layedit', 'laydate',"table",'upload'], function() {
    var $ = layui.jquery
        , upload = layui.upload;
    var table = layui.table;
    var form = layui.form
        , layer = layui.layer
        , layedit = layui.layedit
        , laydate = layui.laydate;




    //方法级渲染
    table.render({
        elem: '#table'
        , url: '/searchController/todayHotSearch'
        , cols: [
            [
                {type: 'numbers', title: '序', align: "center"},

                {field: 'name', title: '热搜词', align: "center"},

                {field: 'count', title: '搜索总量', align: "center"},

            ]
        ]
        , id: 'testReload'
        , page: false
        ,height:'480'

    });


    $('.demoTable .layui-btn').on('click', function () {
        var type = $(this).data('type');
        active[type] ? active[type].call(this) : '';
    });

})